<?php

namespace Database\Seeders;

use App\Models\{
    Role,
    Permission,
};
use Illuminate\Database\Seeder;

class RoleSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Role::factory()
            ->has(
                Permission::factory()->new(['permission_name' => 'guest-view']),
            )
            ->create([
                'role_name' => 'Guest',
            ]);
    }
}
